RE: [mapserver-users] Oracle Spatial and styleitem auto
Dan, Thank you for your reply, unfortunatly this is not an option due to the large ammount of different styles we (need to) use. Plus, with TAB or Shapefiles each filter slows down map rendering. Tamas, Thanks a lot! At the moment I'm using MapServers' own Oracle interface, but I'll switch to OGR and give it a shot. It looks exactly like what I need. Might I suggest adding a link to http://www.gdal.org/ogr/ogr_feature_style.html in some MapServer pages (even though it's technically an OGR thing, I think it's information that will benifit many more MapServer users). With kind regards, Jelmer Baas -Original Message- From: Dan Little [mailto:danlit...@yahoo.com] Sent: vrijdag 22 mei 2009 15:58 To: Jelmer Baas; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Oracle Spatial and styleitem auto You could use separate classes to do that? - Original Message From: Jelmer Baas b...@speerit.nl To: mapserver-users@lists.osgeo.org Sent: Friday, May 22, 2009 6:38:34 AM Subject: [mapserver-users] Oracle Spatial and styleitem auto Hello List, Are there any plans to create a way for MapServer to automaticly apply a certain style to data retrieved from Oracle Spatial? For example by specifying a style column in the mapfile which contains a MapInfo style description? With kind regards, Jelmer Baas ___ 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] Oracle Spatial and styleitem auto
Tamas, Thanks to your url I managed to get it working. The performance is way better than I hoped! The only thing that doesn't seem to work is linewidth for (poly)lines. The style PEN(w:8px,c:#FF6A00) still draws a 1 or 2 pixel line. I tried using cm, pt, etc, but that doesn't change anything. I don't have a style in my map file that overrides it, too (only a class with name and template). Any ideas? Or should I ask this question in a gdal/ogr list? Regards, Jelmer Baas From: Tamas Szekeres [mailto:szeker...@gmail.com] Sent: zaterdag 23 mei 2009 0:30 To: Jelmer Baas Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Oracle Spatial and styleitem auto Hi, If you are using OGR to access the Oracle Spatial data source, you could specify a valid OGR style string in the table by adding field with name: 'OGR_STYLE'. In this case OGR will extract the feature style automatically when using the STYLEITEM AUTO option with this OGR layer. For more information about the OGR feature style strings see: http://www.gdal.org/ogr/ogr_feature_style.html You could use ogr2ogr to transfer the feature styles between various data sources, see the document above. Best regards, Tamas 2009/5/22 Jelmer Baas b...@speerit.nl Hello List, Are there any plans to create a way for MapServer to automaticly apply a certain style to data retrieved from Oracle Spatial? For example by specifying a style column in the mapfile which contains a MapInfo style description? With kind regards, Jelmer Baas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Oracle Spatial and styleitem auto
Yes, you should post this question to the gdal-dev list, hopefully Daniel could comment it. Best regards, Tamas 2009/5/24 Jelmer Baas b...@speerit.nl Tamas, Thanks to your url I managed to get it working. The performance is way better than I hoped! The only thing that doesn't seem to work is linewidth for (poly)lines. The style PEN(w:8px,c:#FF6A00) still draws a 1 or 2 pixel line. I tried using cm, pt, etc, but that doesn't change anything. I don't have a style in my map file that overrides it, too (only a class with name and template). Any ideas? Or should I ask this question in a gdal/ogr list? Regards, Jelmer Baas -- *From:* Tamas Szekeres [mailto:szeker...@gmail.com] *Sent:* zaterdag 23 mei 2009 0:30 *To:* Jelmer Baas *Cc:* mapserver-users@lists.osgeo.org *Subject:* Re: [mapserver-users] Oracle Spatial and styleitem auto Hi, If you are using OGR to access the Oracle Spatial data source, you could specify a valid OGR style string in the table by adding field with name: 'OGR_STYLE'. In this case OGR will extract the feature style automatically when using the STYLEITEM AUTO option with this OGR layer. For more information about the OGR feature style strings see: http://www.gdal.org/ogr/ogr_feature_style.html You could use ogr2ogr to transfer the feature styles between various data sources, see the document above. Best regards, Tamas 2009/5/22 Jelmer Baas b...@speerit.nl Hello List, Are there any plans to create a way for MapServer to automaticly apply a certain style to data retrieved from Oracle Spatial? For example by specifying a style column in the mapfile which contains a MapInfo style description? With kind regards, Jelmer Baas ___ 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
[mapserver-users] Oracle Spatial and styleitem auto
Hello List, Are there any plans to create a way for MapServer to automaticly apply a certain style to data retrieved from Oracle Spatial? For example by specifying a style column in the mapfile which contains a MapInfo style description? With kind regards, Jelmer Baas ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Oracle Spatial and styleitem auto
You could use separate classes to do that? - Original Message From: Jelmer Baas b...@speerit.nl To: mapserver-users@lists.osgeo.org Sent: Friday, May 22, 2009 6:38:34 AM Subject: [mapserver-users] Oracle Spatial and styleitem auto Hello List, Are there any plans to create a way for MapServer to automaticly apply a certain style to data retrieved from Oracle Spatial? For example by specifying a style column in the mapfile which contains a MapInfo style description? With kind regards, Jelmer Baas ___ 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] Oracle Spatial and styleitem auto
Hi, If you are using OGR to access the Oracle Spatial data source, you could specify a valid OGR style string in the table by adding field with name: 'OGR_STYLE'. In this case OGR will extract the feature style automatically when using the STYLEITEM AUTO option with this OGR layer. For more information about the OGR feature style strings see: http://www.gdal.org/ogr/ogr_feature_style.html You could use ogr2ogr to transfer the feature styles between various data sources, see the document above. Best regards, Tamas 2009/5/22 Jelmer Baas b...@speerit.nl Hello List, Are there any plans to create a way for MapServer to automaticly apply a certain style to data retrieved from Oracle Spatial? For example by specifying a style column in the mapfile which contains a MapInfo style description? With kind regards, Jelmer Baas ___ 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