Re: [mapserver-users] Ogrtindex and attribute data
Hi, Do you mean that you cannot classify a layer where the data are drawn using a tile index? I use tile indexed shapefiles all the time and have never had any problems using CLASSITEM/EXPRESSION and FILTERITEM/FILTER. Could you provide an example of what's not working? Regards, Christy On 10/19/2010 10:17 AM, Rahkonen Jukka wrote: Hi, Can somebody affirm that using ogr tileindex is breaking the access to the attribute date of the real datasets, for example shapefiles? Somebody was trying to use WMS GetFeatureInfo with a ogrtindex layer and failed and so did I in the test I made for verification. Now I have been trying myself to classify an orgtindex layer but CLASSITEM/EXPRESSION does not select anything. FILTERITEM/FILTER does not work either. Both systems work if I change a huge combined shapefile in place of the tileindex connection and without EXPRESSION or FILTER Mapserver is drawing all the features OK. If access to attribute data is not implemented, wouldn't it be cool to have it? Multigigabyte shapefiles are tedious to update but I have a reason to use files instead of a database in this case. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Ogrtindex and attribute data
Hi, If I use a big combined shapefile as input I am getting class 36311 coloured as red. If I am using tileindex I am getting an empty map. Tileindex itself is working and if I comment out the EXPRESSION while using tileindex I do get everything from the background data drawn. Thus it is the classification that does not work for me. My Mapserver is version 5.2.1 and here are some parts of my mapfile: #CONNECTIONTYPE OGR #TILEINDEX wildwater_tindex.shp,0 #classification does not work with this DATA combined_wildwaters #classification works with this CLASSITEM luokka CLASS NAME wide_wildwater EXPRESSION 36311 STYLE COLOR 255 0 0 WIDTH 2 END END -Jukka Rahkonen- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Christy Nieman Lähetetty: 20. lokakuuta 2010 14:26 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Ogrtindex and attribute data Hi, Do you mean that you cannot classify a layer where the data are drawn using a tile index? I use tile indexed shapefiles all the time and have never had any problems using CLASSITEM/EXPRESSION and FILTERITEM/FILTER. Could you provide an example of what's not working? Regards, Christy On 10/19/2010 10:17 AM, Rahkonen Jukka wrote: Hi, Can somebody affirm that using ogr tileindex is breaking the access to the attribute date of the real datasets, for example shapefiles? Somebody was trying to use WMS GetFeatureInfo with a ogrtindex layer and failed and so did I in the test I made for verification. Now I have been trying myself to classify an orgtindex layer but CLASSITEM/EXPRESSION does not select anything. FILTERITEM/FILTER does not work either. Both systems work if I change a huge combined shapefile in place of the tileindex connection and without EXPRESSION or FILTER Mapserver is drawing all the features OK. If access to attribute data is not implemented, wouldn't it be cool to have it? Multigigabyte shapefiles are tedious to update but I have a reason to use files instead of a database in this case. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Ogrtindex and attribute data
Hi, It just - starts to work. I need to write a hundred more answers on this list before I have paid back this help. And Jeff, do you hear me? I copied my settings from a document http://mapserver.org/input/vector/ogr.html. Obviously it should be updated a bit. I should have read http://mapserver.org/optimization/tileindex.html instead. -Jukka- Lähettäjä: Christy Nieman [mailto:cnie...@dmsolutions.ca] Lähetetty: 20. lokakuuta 2010 15:08 Vastaanottaja: Rahkonen Jukka Aihe: Re: [mapserver-users] Ogrtindex and attribute data What happens if you leave out the CONNECTIONTYPE when you use the tile index? i.e.: LAYER TILEINDEX wildwater_tindex.shp TILEITEM location # not needed if the attribute with the data paths in your index is called location CLASSITEM luokka ... CLASS NAME wide_wildwater EXPRESSION 36311 STYLE COLOR 255 0 0 WIDTH 2 END END END I'm not certain if leaving the connection type out will help, but it's not necessary assuming your data are all shapefiles. On 10/20/2010 07:49 AM, Rahkonen Jukka wrote: Hi, If I use a big combined shapefile as input I am getting class 36311 coloured as red. If I am using tileindex I am getting an empty map. Tileindex itself is working and if I comment out the EXPRESSION while using tileindex I do get everything from the background data drawn. Thus it is the classification that does not work for me. My Mapserver is version 5.2.1 and here are some parts of my mapfile: #CONNECTIONTYPE OGR #TILEINDEX wildwater_tindex.shp,0 #classification does not work with this DATA combined_wildwaters #classification works with this CLASSITEM luokka CLASS NAME wide_wildwater EXPRESSION 36311 STYLE COLOR 255 0 0 WIDTH 2 END END -Jukka Rahkonen- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Christy Nieman Lähetetty: 20. lokakuuta 2010 14:26 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Ogrtindex and attribute data Hi, Do you mean that you cannot classify a layer where the data are drawn using a tile index? I use tile indexed shapefiles all the time and have never had any problems using CLASSITEM/EXPRESSION and FILTERITEM/FILTER. Could you provide an example of what's not working? Regards, Christy On 10/19/2010 10:17 AM, Rahkonen Jukka wrote: Hi, Can somebody affirm that using ogr tileindex is breaking the access to the attribute date of the real datasets, for example shapefiles? Somebody was trying to use WMS GetFeatureInfo with a ogrtindex layer and failed and so did I in the test I made for verification. Now I have been trying myself to classify an orgtindex layer but CLASSITEM/EXPRESSION does not select anything. FILTERITEM/FILTER does not work either. Both systems work if I change a huge combined shapefile in place of the tileindex connection and without EXPRESSION or FILTER Mapserver is drawing all the features OK. If access to attribute data is not implemented, wouldn't it be cool to have it? Multigigabyte shapefiles are tedious to update but I have a reason to use files instead of a database in this case. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users
Re: [mapserver-users] Ogrtindex and attribute data
On 10-10-20 9:23 AM, Rahkonen Jukka wrote: And Jeff, do you hear me? I copied my settings from a document http://mapserver.org/input/vector/ogr.html. Obviously it should be updated a bit. I should have read http://mapserver.org/optimization/tileindex.html instead. I can hear you. I had just updated that document. What is wrong with it? Can you file a ticket for the parts that are wrong? Please assign the tickets to the MapServer Documentation component, thank you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Ogrtindex and attribute data
-Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Jeff McKenna Lähetetty: 20. lokakuuta 2010 16:40 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Ogrtindex and attribute data On 10-10-20 9:23 AM, Rahkonen Jukka wrote: And Jeff, do you hear me? I copied my settings from a document http://mapserver.org/input/vector/ogr.html. Obviously it should be updated a bit. I should have read http://mapserver.org/optimization/tileindex.html instead. I can hear you. I had just updated that document. What is wrong with it? Can you file a ticket for the parts that are wrong? Please assign the tickets to the MapServer Documentation component, thank you. Hi, Sorry, I can't tell exactly what is wrong. However, I cannot classify my layer with CLASSITEM/EXPRESSION if I am looking at a bunch of shapefiles through this tileindex definition: LAYER TYPE LINE CONNECTIONTYPE OGR #commenting this line out makes classification to work TILEINDEX wildwater_tindex.shp,0 ... If I take out the CONNECTIONTYPE OGR line the classification works. However, I guess that it is only possible to leave out the line when working with shapefiles and not with other OGR formats. Do you think I should file a ticket and encourage someone to have a look why classification fails with the CONNECTIONTYPE line, and if it happens with most fresh Marserver version (I am still running 5.2.1)? It is probably too early to do anything for the documentation if we do not know what is the real issue. -Jukka- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users