[mapserver-users] GEOMTRANSFORM definition causing an error

Stephen Woodbridge woodbri at swoodbridge.com
Thu Sep 26 10:48:53 PDT 2013


So according to this:

http://mapserver.org/development/rfc/ms-rfc-89.html  Section 2.2

You GEOMTRANSFORM at the LAYER level is expecting your buffer value in 
ground units, do you really want to buffer your parcel by 150 degrees?

Maybe you want to do something like Section 2.3?

-Steve W

On 9/26/2013 1:20 PM, tday wrote:
> Hello,
>
> I'm trying to implement a buffer layer using layer GEOMTRANSFORM. I am
> adding this line to the second LAYER definition in the following map file:
>
> GEOMTRANSFORM (buffer([shape], 150))
>
> After adding this line, Mapserver throws an error:
>
> Mapserver response:undefined - Status:error - Error:[Exception... "Failure"
> nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame ::
> http://[domain obscured]/assets/a4f84659/jquery.js :: .send :: line 8102"
> data: no]
>
> The second layer is exactly the same as the first layer except for the
> GEOMTRANSFORM definition.
> Any ideas what the problem may be?  Thanks!
>
>
> MAP
>    NAME        "obscured"
>    STATUS      ON
>    SIZE        912 380
>    EXTENT      -180 -90 180 90
>    UNITS       FEET
>    IMAGECOLOR  255 255 255
>    FONTSET     /web/mapserver/fonts.list
>    CONFIG MS_ERRORFILE stdout
>    # CONFIG MS_ERRORFILE /web/mapserver/ms_error.txt
>    DEBUG       5
>
>    OUTPUTFORMAT
>      NAME "json"
>      DRIVER "TEMPLATE"
>      #MIMETYPE "application/json; subtype=geojson"
>      FORMATOPTION "FILE=geojson.tmpl"
>    END
>
>    OUTPUTFORMAT
>      NAME "geojson"
>      DRIVER "TEMPLATE"
>      #MIMETYPE "application/json; subtype=geojson"
>      FORMATOPTION "FILE=geojson.tmpl"
>    END
>
>    #
>    # Web Interface
>    #
>    WEB
>      IMAGEPATH      "../out/"
>      IMAGEURL       "/out/"
>      METADATA
> # obscured
>      END
>    END
>
>    PROJECTION
>      "init=epsg:4269"
>    END
>
>    #
>    # Layers
>    #
>
>    #####
>    # Parcels
>    #####
>    LAYER
>      NAME           "parcels"
>      METADATA
>        "wfs_title"                 "Parcels"
>        "wfs_srs"                   "EPSG:4269"
>        "gml_include_items"         "all"
>        "gml_featureid"             "OBJECTID"
>        "wfs_enable_request"        "*"
>        "wfs_getfeature_formatlist" "gml,json,geojson"
>        "gml_COUNTRY_ID_type"       "Character"
>        "gml_STATE_ID_type"         "Character"
>        "gml_COUNTY_ID_type"        "Character"
>        "gml_PARCEL_ID_type"        "Character"
>      END
>      TYPE           POLYGON
>      STATUS         ON
>      EXTENT         -180 -90 180 90
>      CONNECTIONTYPE oraclespatial
>      CONNECTION     "SDE/3nz0rb4rr4g1n at ArcSDE"
>      DATA           "SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID,
> COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER"
>      PROJECTION
>        "init=epsg:4269"
>      END
>      # TOLERANCEUNITS feet
>      # TOLERANCE 150
>      CLASS
>        NAME              "Parcels"
>        STYLE
>          COLOR                240 240 240
>          OUTLINECOLOR           0   0   0
>        END
>      END
>    END
>    #####
>    # Buffered Parcels
>    #####
>    LAYER
>      NAME           "parcelbuffers"
>      METADATA
>        "wfs_title"                 "Parcel Buffers"
>        "wfs_srs"                   "EPSG:4269"
>        "gml_include_items"         "all"
>        "gml_featureid"             "OBJECTID"
>        "wfs_enable_request"        "*"
>        "wfs_getfeature_formatlist" "gml,json,geojson"
>        "gml_COUNTRY_ID_type"       "Character"
>        "gml_STATE_ID_type"         "Character"
>        "gml_COUNTY_ID_type"        "Character"
>        "gml_PARCEL_ID_type"        "Character"
>      END
>      TYPE           POLYGON
>      STATUS         ON
>      EXTENT         -180 -90 180 90
>      CONNECTIONTYPE oraclespatial
>      CONNECTION     "SDE/3nz0rb4rr4g1n at ArcSDE"
>      DATA           "SHAPE FROM (select OBJECTID, COUNTRY_ID, STATE_ID,
> COUNTY_ID, PARCEL_ID, APP_USER_G, SHAPE from PARCEL) USING FILTER"
>      PROJECTION
>        "init=epsg:4269"
>      END
>      # GEOMTRANSFORM (buffer([shape], 150))
>      CLASS
>        NAME              "Parcel Buffers"
>        STYLE
>          COLOR                240 240 240
>          OUTLINECOLOR           0   0   0
>        END
>      END
>    END
> END
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



More information about the mapserver-users mailing list