[gdal-dev] Geospatial PDF with OGR_DATASOURCE

Even Rouault even.rouault at mines-paris.org
Wed Jun 6 11:57:24 PDT 2012


> I installed GDAL dev from gisinternals.com<http://www.gisinternals.com> and
> it claims to contain r24544.  However,
> 
> I can still see only grey circles.

Weird, I can see that the updated unit tests pass, so I suspect that there's 
something else.

> 
> My styled test points are available at
> http://latuviitta.org/documents/styled_pdf_points.gml

The link does not work (the domain name has expired apparently), but I've 
successfully tested it with the following GML file :

<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://ogr.maptools.org/ point.xsd"
     xmlns:ogr="http://ogr.maptools.org/"
     xmlns:gml="http://www.opengis.net/gml">
  <gml:featureMember>
    <ogr:point fid="point.0">
      <ogr:geometryProperty><gml:Point><gml:coordinates>479819.84375,4765180.5</gml:coordinates></gml:Point></ogr:geometryProperty>
      <ogr:AREA>215229.266</ogr:AREA>
      <ogr:EAS_ID>168</ogr:EAS_ID>
      <ogr:PRFEDEA>35043411</ogr:PRFEDEA>
      <ogr:OGR_STYLE>SYMBOL(c:#FF0000,id:"ogr-sym-0",s:100)</ogr:OGR_STYLE>
    </ogr:point>
  </gml:featureMember>
  <gml:featureMember>
    <ogr:point fid="point.1">
      <ogr:geometryProperty><gml:Point><gml:coordinates>480035.34375,4765558.5</gml:coordinates></gml:Point></ogr:geometryProperty>
      <ogr:AREA>247328.172</ogr:AREA>
      <ogr:EAS_ID>179</ogr:EAS_ID>
      <ogr:PRFEDEA>35043423</ogr:PRFEDEA>
      <ogr:OGR_STYLE>SYMBOL(c:#FF00FF,id:"ogr-sym-5",s:50)</ogr:OGR_STYLE>
    </ogr:point>
  </gml:featureMember>
</ogr:FeatureCollection>

and

ogr2ogr -f pdf temp.pdf point.gml -dsco MARGIN=100

Did you check that ogrinfo on your GML file reports lines with "Style = 
SYMBOL(something)" just before the geometry WKT ? 

Even


More information about the gdal-dev mailing list