Re: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Josh Hevenor
What's the state of the XML mapfile? Could one create their mapfile in an XML editor to generate a syntactically valid mapfile (through xslt) then use shp2img to verify data connections? On 5/15/2012 11:57 AM, Lime, Steve D (DNR) wrote: Shp2img already provides this capability and is more

[mapserver-users] Question on rfc 86

2011-05-14 Thread Josh Hevenor
This may or may not be relevant but reading RFC 68 got me wondering. I have an application that has shape file data for lakes. There are different shapefiles for data with higher accuracy that are used with scale ranges so that only one is drawn at a time. Specifically something like lakes_1_1m,

Re: [mapserver-users] Question on rfc 86

2011-05-14 Thread Josh Hevenor
into account when accessing the source layers, by using a minor change. BTW: How the legend is drawn in your case? As far as I know mapserver draws only the layers in the scale range by default. Best regards, Tamas 2011/5/14 Josh Hevenor jheve...@rogers.com mailto:jheve...@rogers.com

Re: [mapserver-users] get polygons that contains a point

2010-09-16 Thread Josh Hevenor
Hi Sebastian Take a look at the queryByPoint function found here http://mapserver.org/mapscript/php/index.html#layerobj Hope this helps, Josh On 9/16/2010 7:35 AM, Sebastian E. Ovide wrote: Hi All I have a OGR Layer. Is there any service that I can use to retrieve all the polygons from that

[mapserver-users] Define WKT shape with projection

2010-06-09 Thread Josh Hevenor
I think I'm missing something obvious here. I'm using PHP mapscript and I have two points (epsg:4326). I want to measure the distance between the two points and get the result in meters. I've come at it a couple ways and I'm definitely getting degrees returned. Well, I think I'm just getting the

Re: [mapserver-users] PHP MapScript: shape-classindex is always 0

2010-03-25 Thread Josh Hevenor
I think I came across the same thing, or something related, when I was trying to generate KML using mapserver templates. I know I ended up recreating the class expression in my output instead of using the [shpclass] variable. Let me know if a bug is filed and I'll work up an example to submit.

[mapserver-users] Oracle Spatial layer has too many fields?

2009-12-16 Thread Josh Hevenor
Error: I was adding new fields to an Oracle Spatial layer, now having 61 fields defined with geom from (select * from spatialTable) using ... Process $layer-qryByRect $layer-open For() $res=$layer-getResult $shp=$res-getShape// Fails, line 637 Error

Re: [mapserver-users] Oracle Spatial layer has too many fields?

2009-12-16 Thread Josh Hevenor
the directive CONFIG MS_ERRORFILE /tmp/mapserver.log to redirect the logs in a file. Alan On December 16, 2009 12:21:26 pm Josh Hevenor wrote: Error: I was adding new fields to an Oracle Spatial layer, now having 61 fields defined with geom from (select * from spatialTable) using

Re: [mapserver-users] date format in a template (after a GetFeatureInfo call)...

2009-11-23 Thread Josh Hevenor
It might not be what you're looking for, but you can define your layer as geom from (select a, b, c, to_char(the_date, 'format') from osTable) using... Josh Martin Ouellet wrote: Hi, I've got a GetFeatureInfo which return a date (in my template). Since we don't control the sql statement

[mapserver-users] layer-getExtent() on raster layer

2009-11-18 Thread Josh Hevenor
I have a couple raster layers (ECW) and I'm trying to get the extent using php mapscripts' layer-getExtent method. I don't get an error on the call but when I try to use the resulting rectObj (eg. $rectRasterExtent-minx) I get an error trying to access a non-object. Does this function work on

Re: [mapserver-users] layer-getExtent() on raster layer

2009-11-18 Thread Josh Hevenor
Worked perfectly. Thanks! Dan Little wrote: Add the EXTENT directive under the LAYER definition... LAYER ... stuff ... EXTENT MINX MINY MAXX MAXY ... stuff... END - Original Message From: Josh Hevenor jheve...@rogers.com To: mapserver-users mapserver-users

Re: [mapserver-users] ShapeObj from WKT help please

2009-10-26 Thread Josh Hevenor
http://mapserver.org/mapscript/php/index.html#shapeobj-class The second constructor will build this for you... ShapeObj ms_shapeObjFromWkt(string wkt) Or if you have a spreadsheet you could look at adding the whole thing to your mapfile, or converting it to shapefile (etc.) with ogr2ogr.

[mapserver-users] WMS in Google Earth

2009-09-29 Thread Josh Hevenor
I'm wondering if anyone has had success viewing their mapserver WMS services through Google Earth? I can manually enter a GetMap request and see the image but when I try to list my layers in the Refresh-WMS Parameters section I get an error message stating that This MWS server has no layers which

Re: [mapserver-users] WMS in Google Earth

2009-09-29 Thread Josh Hevenor
Earth. It probably has something to do with the image type not being supported or wms parameters missing. If you want me to help you can send me the metadata and the map section snippets of your mapfile. Josh Hevenor schreef: I'm wondering if anyone has had success viewing their mapserver

Re: [mapserver-users] KML Export

2009-09-02 Thread Josh Hevenor
template used to represent multiple layers. Let me know if you need an example. Steve Josh Hevenor jheve...@rogers.com 09/01/09 6:21 PM I've been using the ogr2ogr kml exporter to build some nightly conversions of shape data. I'm wondering if there's a way to include

[mapserver-users] KML Export

2009-09-01 Thread Josh Hevenor
I've been using the ogr2ogr kml exporter to build some nightly conversions of shape data. I'm wondering if there's a way to include symbolization here...something that accepts a mapfile and a layername (or just a mapfile, or whatever) and exports kml. Alternatively, I've used the ArcObjects 9.3

[mapserver-users] MapScript ShapFileObj

2009-07-16 Thread Josh Hevenor
. If there's something like this on the go already, let me know how I can help. Thanks, Josh Hevenor ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] OracleSpatial driver - VARCHAR2(4000)

2009-01-28 Thread Josh Hevenor
to support an update to this in whatever way I can. Thanks, Josh Hevenor ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] result cache question

2008-10-23 Thread Josh Hevenor
Dear List, I'm updating a spatial querying tool that follows a process something like: 1. Select set of shapes from layer A with n results: A[1-n] 2. Find shapes from layer B that within buffer distance D of selected shapes from A[1-n] In the existing code we get a result set of A[1-n],

re: [MAPSERVER-USERS] mapserver does not show oracle layer

2008-08-06 Thread Josh Hevenor
Hi there, With my oracle spatial layers I use connection uui/[EMAIL PROTECTED], where the dbname is setup on your server using the oracle clients 'Net Manager'. Hope this helps, Josh Hevenor ___ mapserver-users mailing list mapserver-users

re: [mapserver-users] show legend graphic with mapbuilder 1.5 and mapserver

2008-06-10 Thread Josh Hevenor
/StyleList /Layer So this should take care of the client end...If I can find that mapfile again I'll pass along the WMS definition also. Hope this helps, Josh Hevenor ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org

Re: [MAPSERVER-USERS] Displaying points labels

2008-05-31 Thread Josh Hevenor
Excellent EXPRESSION excellent STYLE SYMBOL 'circle' SIZE 15 COLOR 0 255 0 END END END Hope that helps, Josh Hevenor ___ mapserver-users mailing list mapserver-users