Select to view content in your preferred language

Doesn't Reading and displaying the Shape file in JavaFX

2736
25
07-27-2023 12:13 AM
PRAVEENPATNANA
Emerging Contributor

Screenshot from 2023-07-27 12-33-56.pngScreenshot from 2023-07-27 12-36-50.pngScreenshot from 2023-07-27 12-37-00.pngScreenshot from 2023-07-27 12-37-03.png

i set up everything like APIKey and ArcGIS RunTIme Environment and javaFX also but while im running the code provided by the  official esri documentation , im not getting any display output i tried to display the ArcGIS basemap it was working but while im reading the Shapefile was not giving any output, i'm keep on trying but not getting any result.
i'm happy get your suggitions & Thanks in advance.

 

25 Replies
MarkBaird
Esri Regular Contributor

I can't see anything obviously wrong with your code and its looks very similar to the sample we have.  

Have you managed to get our sample working?  This example does work with the data we've included, so I'm wondering if this is an issue with your data?

Are you seeing any error messages on the console.  You've got a few potential places you output messages if the shapefile fails to load.

Is the shaefile complete?  A shapefile needs to be used alongside other files which it originally came with.  If you just have a .shp file on its own, this will not work.  If you use the data in our sample you will see what a complete shapefile will look like.

0 Kudos
PRAVEENPATNANA
Emerging Contributor

Dear MarkBaird sir,

Yes your official esri Sample code i executed & sir the shapefile included with .shx, .dbf,.qix these all are i put in the folder to run the shape file to display as you said there is nothing wrong in my code but i can't able to find whats the problem & why it didn't displaying anything

lastly i checked with basemap(ArcGISBaseMap) to display the map to check wheather  to check the installations are well or not it's beautifully displayed Base but coming to shape file i don't know why it's displaying some thing messy about it, i cant finding & i did a lot of research.Screenshot from 2023-07-27 22-16-27.png

Screenshot from 2023-07-27 22-10-28.png

0 Kudos
PRAVEENPATNANA
Emerging Contributor

The shape file was didn't displaying anything as i put earlier blankframe.Screenshot from 2023-07-27 12-33-56.png

0 Kudos
PRAVEENPATNANA
Emerging Contributor

i have a plenty of internet& i didn't seen any error on my consoleScreenshot from 2023-07-27 22-27-04.png

0 Kudos
MarkBaird
Esri Regular Contributor

@PRAVEENPATNANA I'm suspecting a data issue.  I've tried to send you a message so maybe I could get a copy of your data to see what is going on.

 

0 Kudos
PRAVEENPATNANA
Emerging Contributor

Sir which data? what i have to send to you? could you clarify could i send the copy of my project?

0 Kudos
MarkBaird
Esri Regular Contributor

A couple more questions:

 - Have you managed to get it working with the data we include in the sample?

 - Is the issue only with you data, or all shapefiles?

 

0 Kudos
PRAVEENPATNANA
Emerging Contributor

i didn't involved in gradle , i built in maven project sir.Screenshot from 2023-07-28 14-34-05.pngScreenshot from 2023-07-28 14-34-13.pngScreenshot from 2023-07-28 14-34-25.pngScreenshot from 2023-07-28 14-34-36.pngScreenshot from 2023-07-28 14-34-40.png

0 Kudos
MarkBaird
Esri Regular Contributor

One thing a colleague has pointed out is you might not be using the APIKey correctly:

MarkBaird_1-1690532175787.png

I think it will work better if you just put the API key into the string like this:

String apiKey = "AAPK...."

 

 

0 Kudos