[Geomoose-users] Help; is there anybody that knows how to use a DFX or KML in Geomoose?

Brent Fraser bfraser at geoanalytic.com
Thu Nov 14 17:02:27 PST 2013


Your map file needs the
     CONNECTIONTYPE OGR
     CONNECTION 'T:\GeoData\Parcels\Alberta\brooks.dxf' # entities'

part instead of your DATA statment.  So it should look like:

     CONNECTIONTYPE OGR
     CONNECTION 'cci.dxf' # entities'

instead of
         DATA './cci.dxf'

Mapserver does not understand DXF; it needs to use the OGR library to 
read it.

What is the coordinate system of your DXF file?

Best Regards,
Brent Fraser

On 11/14/2013 5:19 PM, Behr Mirfathali wrote:
>
> Forgive me, but I do not know how a header works or where it needs to go.
>
> This is my .map file. Should this work? It is pretty much a direct 
> knock off from the Geomoose Demo 'Parcels'.
>
> MAP
>
> NAME 'cci'
>
> SIZE 800 650
>
> STATUS ON
>
> EXTENT  427632.500000 4893613.330000 560300.922104 5015936.680000
>
> UNITS METERS
>
> INCLUDE "../../geomoose_globals.map"
>
> WEB
>
> METADATA
>
> 'ows_title' 'CCI Maps'
>
> 'ows_srs' 'EPSG:26915 EPSG:4326 EPSG:900913 EPSG:3857'
>
> 'ows_enable_request' '*'
>
> 'ows_onlineresource' 'http://www.geomoose.org'
>
> END
>
> END
>
> PROJECTION
>
> 'init=epsg:3875'
>
> END
>
> LEGEND
>
>       STATUS ON
>
>       LABEL
>
> TYPE TRUETYPE
>
> FONT vera_sans
>
> SIZE 8
>
> COLOR 0 0 0
>
>       END
>
> END
>
> LAYER
>
> NAME cci
>
> DATA './cci.dxf'
>
> STATUS ON
>
> TYPE Line
>
> LABELCACHE ON
>
> LABELMAXSCALE 20000
>
> CLASS
>
> NAME 'cci'
>
> STYLE
>
> WIDTH 3
>
> COLOR -1 -1 -1
>
> OUTLINECOLOR 93 181 53
>
> MAXSCALEDENOM 15000
>
> END
>
>     STYLEITEM 'AUTO'
>
>     CLASS
>
>        NAME 'Rural DXF'
>
>     END
>
> END
>
> LABEL
>
> TYPE TRUETYPE
>
> FONT vera_sans
>
> SIZE 8
>
> ANTIALIAS TRUE
>
> COLOR 0 0 0
>
> OUTLINECOLOR 254 254 200
>
>                                                 BUFFER 4
>
> MINFEATURESIZE auto
>
> PARTIALS FALSE
>
> POSITION cc
>
> END
>
> END
>
> METADATA
>
> # drill-down identify service record.
>
> 'identify_record'              'templates/identify.html'
>
> # query.php / "Search Parcels" functionality.
>
> 'itemquery'         'templates/search_result.html'
>
> 'itemquery-filter'             '/.*[qstring].*/i'
>
> 'qstring_validation_pattern' '.'
>
> # Feature reports are stored in the conf/feature_report directory.
>
> 'feature_report' 'parcel.xml'
>
>                                 'select_record' 
> 'templates/select_result.html'
>
> 'select_header' 'templates/select_header.html'
>
> 'popups' 'parcels_popup.html'
>
> END
>
> TOLERANCE 0
>
>   END
>
> END ## end Map
>
> *From:*Brent Fraser [mailto:bfraser at geoanalytic.com]
> *Sent:* Thursday, November 14, 2013 3:53 PM
> *To:* Behr Mirfathali
> *Subject:* Re: [Geomoose-users] Help; is there anybody that knows how 
> to use a DFX or KML in Geomoose?
>
> They are produced by a gov't agency. Here's the header part
>
> $ACADVER
>   1
> AC1009
>   9
>
>
>
> Best Regards,
> Brent Fraser
>
> On 11/14/2013 3:49 PM, Behr Mirfathali wrote:
>
>     Thank you
>
>     I am glad to know it works.
>
>     BTW, what AutoCAD version of DFX file have you been saving to?
>
>     *From:*Brent Fraser [mailto:bfraser at geoanalytic.com]
>     *Sent:* Thursday, November 14, 2013 2:44 PM
>     *To:* Behr Mirfathali; geomoose-users at lists.osgeo.org
>     <mailto:geomoose-users at lists.osgeo.org>
>     *Subject:* Re: [Geomoose-users] Help; is there anybody that knows
>     how to use a DFX or KML in Geomoose?
>
>     Behr,
>
>       I've used DXF with GeoMoose.    Likely your version of Mapserver
>     has the capabilities built in.  Try something like I did by
>     setting up a mapserver mapsource with a map file containing a
>     layer definition like:
>
>       LAYER
>         NAME 'Alberta'
>         STATUS on
>         TYPE LINE
>
>         CONNECTIONTYPE OGR
>         CONNECTION 'T:\GeoData\Parcels\Alberta\brooks.dxf' # entities'
>         PROJECTION
>             'init=epsg:3403'
>         END
>         STYLEITEM 'AUTO'
>         CLASS
>            NAME 'Rural DXF'
>         END
>       END
>
>     Typical problems relate to the coordinates stored in the DXF files
>     (sometimes "local" coordinate systems are used).
>
>
>     Best Regards,
>
>     Brent Fraser
>
>     On 11/14/2013 2:58 PM, Behr Mirfathali wrote:
>
>         Hello,
>
>         I have files I am exporting out of AutoCAD Map for Geomoose.
>         We have so many text layers to deal with so it looks like a
>         DWF or a KML/KMZ layer would be easier to work with. I did a
>         little research and I found that both types can be used.
>
>         http://gdal.org/ogr/ogr_formats.html  For KML it says it needs
>         *(read support needs libexpat). *I am not sure what is meant
>         by 'read support'.
>
>         **
>
>         And
>
>         According to this
>         http://wiki.ieee-earth.org/Documents/GEOSS_Tutorials/GEOSS_Provider_Tutorials/Web_Feature_Service_Tutorial_for_GEOSS_Providers/Section_4%3A_Provisioning%2F%2FUsing_the_service_or_application/Section_4.3%3A_Detail_Steps_for_Use_Cases/Section_4.3.1%3A_Offering_a_DXF_file_with_mapserver_WFS
>
>         I would have to install OSGeo4W to the server. But what
>         version? Also, what version of DXF? 2013? 2010? I would have
>         thought the original Mapserver would have at least been able
>         to use the DXF format given its history.
>
>         Any thoughts?
>
>         All help is appreciated.
>
>         Thank you
>
>         Behr
>
>         *Behr Mirfathali* | Engineering Technician
>
>         Direct 360.326.5582 | Fax 541.265.8946|
>
>         behr at coastcom.net <mailto:behr at coastcom.net> |
>         www.coastcom.net <http://www.coastcom.net/>
>
>         signature
>
>
>
>
>
>         _______________________________________________
>
>         Geomoose-users mailing list
>
>         Geomoose-users at lists.osgeo.org  <mailto:Geomoose-users at lists.osgeo.org>
>
>         http://lists.osgeo.org/mailman/listinfo/geomoose-users
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20131114/b4207c67/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 2517 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20131114/b4207c67/attachment-0001.jpe>


More information about the Geomoose-users mailing list