Hi
Is there any other way to display maps other than using shape files and how to get the attribute name of the shape file ie (for using in data mapping)....
You can also use the 9.2 map with GeoImagery sources, see: http://help.infragistics.com/Help/NetAdvantage/DV/2009.2/CLR3.5/html/xamWebMap_About_Geo-Imagery.html
I'm assuming you mean how do you discover the attribute names in the dbf file for databinding. One way is just to open up the file, and even though its a binary format, you can pretty easily pick out the attribute names. The other way would be to use a tool for shapefiles that allows you to examine and change this data. see: http://help.infragistics.com/Help/NetAdvantage/DV/2009.2/CLR3.5/html/SL_DV_xamWebMap_Creating_and_Editing_Custom_Shapefiles.html
Does this answer your questions?
-Graham
hi
actually i have to use my own maps say for example map of oil refineries or map of university etc...in that case whether i have to use only shape file of the university,oil refineries or is there any other way to do this and i need to bind the data from some other source not from the dbf file.
thanks
In terms of databinding, you can bind a data source to the map, as long as you can correlate its items with some attribute of the elements in the shapefile. see: http://help.infragistics.com/Help/NetAdvantage/DV/2009.2/CLR3.5/html/SL_DV_xamWebMap_Bind_to_Data_with_xamWebMap.html
In terms of non shapefile input, the options available now are to build your own map layer manually by manipulating map elements: http://help.infragistics.com/Help/NetAdvantage/DV/2009.2/CLR3.5/html/SL_DV_xamWebMap_About_Map_Elements.html
Or you can use the currently supported Geo-Imagery data sources. I'll try to acertain if there are any other options, currently.
How is the map geometry that you want to use represented? Images? Multi resolution Images? Polygons? If multi resolution images you could experiment with creating a class that inherits from MapTileSource to specify as the maptilesource of the map.
AH, almost forgot, you can also talk to a SQL database storing geometry infromation, see: http://help.infragistics.com/Help/NetAdvantage/DV/2009.2/CLR3.5/html/sl_dv_xamWebMap_Display_Geospatial_Data_from_SQL_Database_Server.html
Its looking for the actual geometry data in that column. When I asked for the schema of the table I meant can you tell me all the column names and their SQL data types please? Have you tried just assigning each column name in the mapping until you get results?
The schema contains all the columns of the USA_adm2 shape file. I have doubt that what goes in the place of SpatialDataColumn. In that place i have put one the column name of the database(NAME_2).
<igMap:SqlShapeReader DataMapping="Data=SpatialDataColumn"/>I have put like this <igMap:SqlShapeReader DataMapping="Data=NAME_2"/>whether i have to bind all the columns of the databse or its enough to put only one column.Please make me clear what goes in the place of SpatialDataColumn and where the operation contract(GetData) will be called.-Oniv
<
igMap
:
SqlShapeReader
DataMapping
="Data=SpatialDataColumn"
/>I have put like this <igMap:SqlShapeReader DataMapping="Data=NAME_2"/>whether i have to bind all the columns of the databse or its enough to put only one column.Please make me clear what goes in the place of SpatialDataColumn and where the operation contract(GetData) will be called.-Oniv
What does the schema of the USA_adm2 table look like? I get the feeling you are not matching the column name for the spatial data correctly. Have you put breakpoints in the service to make sure rows are being added to the list that is returned?
i have gone throw the above link and tried that sample with USA_adm2 goespatial data which is converted from USA_adm2 shape file. but when i run the application the map is not displaying. I have one doubt that what goes in the place of SpatialDataColumn in the following code snippet.I red in web pages that column name of the Geo database(USA_adm2). when i put NAME_2 one of the column of USA_adm2 its not working.
<igMap:SqlShapeReader DataMapping="Data=SpatialDataColumn"/>whether i have bind all the columns of the database. i have attached the sample code. can you please check and reply....thanks in advance...
/>whether i have bind all the columns of the database. i have attached the sample code. can you please check and reply....thanks in advance...