02-16-2019 09:16 PM
I want to read a shape file Infomation(Polygon)
and display it on the VIEWER screen by using IMAGINE Developers' Toolkit API.
Please tell me how to do it.
02-18-2019 07:13 AM
evue_OpenVectorLayer(app->connection, (Emsc_Pointer)app->displayHandle, "c:/data/polygons.shp", "c:/data/polygons.evs", EVEC_SINGLE_PRECISION, &lclerr);
Obviously, "c:/data/polygons.shp" would be the path to your shapefile. "c:/data/polygons.evs" would be the path to an ERDAS IMAGINE symbology file to be used when displaying the layer. If you don't have one, you can pass NULL.
02-19-2019 02:45 AM
Thank you very much. Polygon was displayed.
May I ask even more?
How can I change the color of Polygon by using IMAGINE Developers' Toolkit API.
Also, can I change the color for each Polygon?
02-19-2019 10:47 AM - edited 02-19-2019 10:47 AM
The symbology (style) for the shapefile is specified via the evs file, which is one of the parameters above. You will have to create the evs file based on a shapefile that has similar attribute.